//
// Created by zhupi on 2024/11/4.
//

#include "properts_dialog_view_ctrl.h"
#include "add_propertes_dialg_view_ctrl.h"
PropertsDialogViewCtrl &PropertsDialogViewCtrl::GetIns() {
    static PropertsDialogViewCtrl ins;
    return ins;
}

void PropertsDialogViewCtrl::Initial() {
    dialog_ = new PropertsDialog(nullptr);
    dialog_->Initial();
    InitConnect();
    dialog_->exec();
}

void PropertsDialogViewCtrl::InitConnect() {
    connect(dialog_, &PropertsDialog::OKSg, [](){
        AddPropertesDialgViewCtrl::GetIns().Initial();
    });

}
